package com.example.sdktest2.controller;

import com.xihuanjun.sdk.config.SapSLConfig;
import com.xihuanjun.sdk.dao.SapOrderDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;

@RestController
public class MyController {

    @Autowired
    SapOrderDao sapOrderDao;

    @GetMapping("/test")
    public String test(){
        HashMap map=new HashMap();
        map.put("$filter","U_JSTDDH eq '2401945'");
        Long docEntry = sapOrderDao.getDocEntry(map);
        return docEntry.toString();
    }
}
